lst=[40,10,20,30]
def minIdex(lst):
    return min(range(len(lst)),key=lst.__getitem__)

def maxIdex(lst):
    return max(range(len(lst)),key=lst.__getitem__)

print(maxIdex(lst))
print(minIdex(lst))

print(lst.index(min(lst)))
print(lst.index(max(lst)))

lst=[40,10,20,30]
print(lst.index(40))
print(max(range(len(lst)),key=lambda l:lst[l]))
print(min(range(len(lst)),key=lambda l:lst[l]))

lst=[11,22,33,44,55]
for i in range(len(lst)):
    print(lst.__getitem__(i))

l=[1,2,1,3,2,3,1,2,5,4,5,4]

print(max(set(l),key=l.count))

















